using UnityEngine;

namespace CinemaDirector
{
	[CutsceneItem("Tween", "Position Objects")]
	public class GGTweenPositionObjects : GGTweenTransformBase
	{
		public Transform fromTrans;

		public Transform toTrans;

		public override void SetProperty(Vector3 newPropertyValue)
		{
			trans.position = newPropertyValue;
		}

		public override Vector3 GetProperty()
		{
			return trans.position;
		}

		public override Vector3 GetFrom()
		{
			return from + fromTrans.position;
		}

		public override Vector3 GetTo()
		{
			return to + toTrans.position;
		}
	}
}
